package com.yzh.pethome.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageParams {
    private Integer pageNum;
    private Integer pageSize;

    public Integer getStartIndex(){
        return (pageNum-1)*pageSize;
    }

}
